www.gusucode.com > PHP展示型企业网站模板米拓整站源码 1.0PHP源码程序 > PHP展示型企业网站模板米拓整站源码 1.0/MetInfozs_v1.0/MetInfozs_v1.0/app/system/include/public/js/examples/include/patch.js
define(function(require, exports, module) { var $ = require('jquery'); var common = require('common'); require('epl/include/cookie'); if(!$.cookie('upgraderemind')){ url = adminurl+'n=system&c=patch&a=dopatch'; $.ajax({ url: url,//新增行的数据源 type: "POST", cache: false, dataType: "json", success: function(data) { $.cookie('upgraderemind', '1', {path: '/'}); } }); var ver = $('.v52fmbx').attr("data-metcms_v"),patch = $('.v52fmbx').attr("data-patch"); var url = apppath+'n=platform&c=system&a=dosysnew'+'&ver='+ver+'&patch='+patch; $.ajax({ url: url, type: 'GET', dataType: 'jsonp', cache: false, success: function(data) { if(data.metok==1){ window.location.href=adminurl+"index.php?renewable=1#metnav_75"; } } }); } });